package com.apes.hr.recruit.repository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.hr.recruit.model.RecruitChannel;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author HuJianLin
 * @create 2018-04-28 16:07
 */
public interface RecruitChannelRepository extends CustomRepository<RecruitChannel, String>{
    @Query("select T from RecruitChannel T where (id like %:value% or name =:value )")
    List<RecruitChannel> findByName(@Param("value") String value);
}
